import {request} from "../../request";

export function getReceiptById(id){
    return request({
        url:`/lswms/receipt/${id}`,
        method:'get'
    })
}


export function getReceiptList(data){
    return request({
        url:'/lswms/receipt/page',
        method:'put',
        data:data
    })
}

export function putReceipt(data){
    return request({
        url:'/lswms/receipt',
        method:'put',
        data:data
    })
}
export function postReceipt(data){
    return request({
        url:'/lswms/receipt',
        method:'post',
        data:data
    })
}

export function deleteReceipt(data){
    return request({
        url:`/lswms/receipt`,
        method:'delete',
        data:data
    })
}
export function exportReceipt(data){
    return request({
        url:`/lswms/receipt/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}

export function createPutaway(data){
    return request({
        url:`/lswms/receipt/createPutaway`,
        method:'get',
        params:data
    })
}

export function closeReceipt(data){
    return request({
        url:`/lswms/receipt/closeReceipt`,
        method:'get',
        params:data
    })
}

export function cancelReaceipt(data){
    return request({
        url:`/lswms/receipt/cancelReaceipt`,
        method:'get',
        params:data
    })
}

export function redoReaceipt(data){
    return request({
        url:`/lswms/receipt/redoReaceipt`,
        method:'get',
        params:data
    })
}

export function postQcCreate(data){
    return request({
        url:'/lswms/receipt/qcCreate',
        method:'post',
        data:data
    })
}

export function getPrintQc(data){
	return request({
	    url:'/lswms/receipt/getPrintQc',
	    method:'post',
	    data:data
	})
}

export function receiptEmptyLPN(data){
	return request({
	    url:'/lswms/receipt/receiptEmptyLPN',
	    method:'post',
	    data:data
	})
}